# import time
#
#
# def f1():
#     print('this f1')
#
#
# def f2():
#     print('this f2')
#
#
# def print_current_time(fuc):
#     print(time.time())
#     fuc()
#
#
# print_current_time(f1)
# print_current_time(f2)
import time


# 装饰器
def decorator(func):
    def wrapper(*args):
        print(time.time())
        func(*args)

    return wrapper()


# @decorator
def f1(func_name):
    print('this is f1 params: ' + func_name)


f1('test_1')


# decorator(f1)


def f3(func_name1, func_name2, **kwargs):
    print('this is f1 params: ' + func_name1)
    print('this is f1 params: ' + func_name2)
    print("kw", kwargs)


dd = {'a': 1, 'd': 3}
f3('test_2', 'test_3', a=1, c=3)
f3('test_2', 'test_3', **dd)
